import request from '../utils/request';

export async function findRoles(body) {
  return request('/api/roles/find', {
    method: 'POST',
    body,
  });
}
export async function createRole(body) {
  return request('/api/role/create', {
    method: 'POST',
    body,
  });
}
export async function deleteRole(body) {
  return request('/api/role/delete', {
    method: 'POST',
    body,
  });
}
export async function updateRole(body) {
  return request('/api/role/update', {
    method: 'POST',
    body,
  });
}
